<template>
  <div id="app">
    hello world !!!
  </div>
</template>

<script>

export default {
  name: 'app',
  created() {
    // console.log('created')
    // console.log(this.obj.name)
    class A {
      constructor(name) {
        this.name = name
      }
    }
    const a = new A('a')
    console.log(a.name)

    // 使用 Promise
    const promise = new Promise((resolve) => {
      resolve('成功');
    });
    console.log(promise)
  },
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
